
/**
 * @file
 * WinRT threads define pthread_t
 */

struct wrtcontext;
typedef struct pthread_t {
    void *(*func)(void* arg);
    void *arg;
    void *ret;
	struct wrtcontext * wrtcontext;
} pthread_t;

#ifdef __cplusplus

extern "C" int pthread_create(pthread_t *thread, const void *unused_attr,
	 void *(*start_routine)(void*), void *arg);
	
extern "C" void pthread_join(pthread_t thread, void **value_ptr);

#else
int pthread_create(pthread_t *thread, const void *unused_attr,
	 void *(*start_routine)(void*), void *arg);
	
void pthread_join(pthread_t thread, void **value_ptr);
#endif